using System;

namespace Axe.Conversions.CustomConverters
{
    public class DateTimeConverter : Conversion<DateTime, long>
    {
        #region Conversion<DateTime,long> Members

        public override long ForwardConvert(DateTime instance)
        {
            return instance.ToBinary();
        }

        public override DateTime ReverseConvert(long instance)
        {
            return DateTime.FromBinary(instance);
        }

        #endregion
    } ;
}